package com.qingcheng.dao;

import com.qingcheng.pojo.comment.Comment;
import com.qingcheng.pojo.comment.CommentEvaluation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CommentEvaluationMapper extends Mapper<CommentEvaluation> {


    /**
     * 根据commentID查找CE
     * @param commentId
     * @return
     */
    @Select("SELECT *FROM `tb_comment_evaluation` WHERE comment_id =#{commentId}")
    public CommentEvaluation findByCommentId(@Param("comment_id") String commentId);

}
